<template>
  <div class="minicard-box">
    <div class="minicard-img">
      <img :src="data.imgsrc" alt="" />
    </div>
    <div class="minicard-content">
      <h3>{{ data.title }}</h3>
      <p>{{ data.num }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>

<style lang="less" scoped>
.minicard-box {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: #fff;
  .minicard-img {
    padding: 10px;
    width: 50%;
    box-sizing: border-box;
    text-align: center;
    img {
      height: 100%;
    }
  }
  .minicard-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    h3 {
      color: #cccccc;
      margin-bottom: 8px;
    }
    p {
      font-weight: bold;
    }
  }
}
</style>
